package top.hzy520.online.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.hzy520.online.entity.OnlineUser;

import java.util.List;

@Mapper
public interface OnlineUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OnlineUser record);

    int insertSelective(OnlineUser record);

    OnlineUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OnlineUser record);

    int updateByPrimaryKey(OnlineUser record);

    int selectAllCount();

    List<OnlineUser> selectAllOnlineUserList(@Param("offset") int offset,@Param("limit") int limit);

    OnlineUser selectUserBySessionId(String sessionId);

    void deleteSelectedOnline(@Param("onlineUserList") List<OnlineUser> onlineUserList);

    List<OnlineUser> selectAllOnlineList();

}